Recording and Playing Macros

You can record macros in Dragonfly to automate frequently used commands or processes, which can help you save time by streamlining repetitive tasks. After you record a macro, you can play it back to perform all of the steps in the macro with a single action, unless a user input is required.

Macro Player dialog

Macro Player dialog

Dragonfly's Macro Builder provides an intuitive, visual way to build and edit complex macros or to combine multiple macros for batching (see Working with the Macro Builder).

The following controls are available on the Macro Player for recording and playing macros.

Macro Player controls
Item   Icon Description
New Macro Opens the Create Macro File dialog, shown below.

You can choose a name for the new macro, a save location, and to either create the file or to create the file and start recording.

Import Macro Lets you import a macro file to the current user macro folder.
View File Opens the current macro file.

Note Macro files are written in Python and can be viewed and edited in a simple text editor or with a developer application such as PyCharm.

Save As Saves the current macro as a new file.
Save Saves any changes you made to the current macro.
Reload Reloads the selected macro.

Note You can reload a macro to discard any changes you made while editing the macro in the Macro Player dialog. Reloading a macro will also apply any changes you made to the macro file externally. For example, in PyCharm.

Delete Deletes the selected macro.
Record Begins recording.

Note The Record button changes to Pause as soon as you begin recording.

Pause Pauses recording.

Note The Pause button changes to Record as soon as you pause recording.

Play Single Step

Plays the macro step-by-step.
Play All Plays the macro, either to the end or to point that a user input is required.

If the Automatically select the only occurrence when there is a single element available option is checked, the macro will automatically insert the required object or element when needed if no additional options are available. If multiple elements are available, the macro will wait for the required user input.

Stop Stops playback.